geom_point
{GGPLOT2}
Generates a scatter plot
ggplot
{GGPLOT2}
Create a ggplot graph
scale_y_continuous
{GGPLOT2}
Customise continuous y axis
as.character
{base}
Coerce a vector to character
as.numeric
{base}
Coerce a vector to numeric
setwd
{base}
Set Working Directory
aes
{GGPLOT2}
Construct aesthetic mapping of a ggplot graph
geom_smooth
{GGPLOT2}
Generates a smoothed conditional means curve / line
library
{base}
Load an R package
lm
{base}
Fit a linear model
theme_classic
{GGPLOT2}
A minimalistic theme with no gridlines
summary
{base}
Obtain summary statistics or detailed regression output
c
{base}
Combine values/vectors into a vector
ifelse
{base}
Return a or b depending on the value of test
read_dta
{haven}
Read a .dta file (Stata data)
scale_x_continuous
{GGPLOT2}
Customise continuous x axis
The end!